table! {
    dictsentence (id) {
        id -> Text,
        snapshot_at -> Nullable<Text>,
        lang -> Text,
        value -> Text,
        created_at -> Nullable<Timestamp>,
        updated_at -> Nullable<Timestamp>,
        status -> Nullable<Text>,
    }
}

table! {
    dictsentence_trans (id, tlang) {
        id -> Text,
        snapshot_at -> Nullable<Text>,
        tlang -> Text,
        tvalue -> Text,
        created_at -> Nullable<Timestamp>,
        updated_at -> Nullable<Timestamp>,
        status -> Nullable<Text>,
    }
}

table! {
    dictword (id) {
        id -> Text,
        snapshot_at -> Nullable<Text>,
        word -> Text,
        lang -> Text,
        definitions -> Nullable<Text>,
        tags -> Nullable<Text>,
        en_exchanges -> Nullable<Text>,
        en_phonetic -> Nullable<Text>,
        en_pos -> Nullable<Text>,
        en_collins -> Nullable<Text>,
        en_oxford -> Nullable<Text>,
        en_bnc -> Nullable<Text>,
        en_frq -> Nullable<Text>,
        zh_pinyin -> Nullable<Text>,
        zh_strokes -> Nullable<Text>,
        created_at -> Nullable<Timestamp>,
        updated_at -> Nullable<Timestamp>,
        status -> Nullable<Text>,
    }
}

table! {
    dictword_trans (id, tlang) {
        id -> Text,
        snapshot_at -> Nullable<Text>,
        tlang -> Text,
        tvalue -> Text,
        created_at -> Nullable<Timestamp>,
        updated_at -> Nullable<Timestamp>,
        status -> Nullable<Text>,
    }
}

table! {
    edges (id) {
        id -> Nullable<Integer>,
        subject -> Text,
        predicate -> Text,
        object -> Text,
        facet -> Nullable<Text>,
        created_at -> Nullable<Timestamp>,
        updated_at -> Nullable<Timestamp>,
    }
}

table! {
    editors (id) {
        id -> Text,
        snapshot_at -> Nullable<Text>,
        title -> Nullable<Text>,
        created_at -> Nullable<Timestamp>,
        updated_at -> Nullable<Timestamp>,
        status -> Nullable<Text>,
    }
}

table! {
    events (id) {
        id -> Text,
        source -> Text,
        user_id -> Text,
        data -> Text,
        created_at -> Nullable<Timestamp>,
    }
}

table! {
    files (id) {
        id -> Text,
        snapshot_at -> Nullable<Text>,
        file_name -> Text,
        file_mode -> Nullable<Text>,
        file_owner -> Nullable<Text>,
        file_group -> Nullable<Text>,
        file_size -> Nullable<BigInt>,
        title -> Nullable<Text>,
        description -> Nullable<Text>,
        extension -> Nullable<Text>,
        content -> Nullable<Binary>,
        referer_url -> Nullable<Text>,
        created_at -> Nullable<Timestamp>,
        updated_at -> Nullable<Timestamp>,
        status -> Nullable<Text>,
        folder_id -> Text,
    }
}

table! {
    filetypes (id) {
        id -> Text,
        extension -> Nullable<Text>,
        #[sql_name = "type"]
        type_ -> Nullable<Text>,
        popularity -> Nullable<Integer>,
        created_at -> Nullable<Timestamp>,
        updated_at -> Nullable<Timestamp>,
        status -> Nullable<Text>,
    }
}

table! {
    folders (id) {
        id -> Text,
        snapshot_at -> Nullable<Text>,
        seq -> Nullable<BigInt>,
        folder_name -> Text,
        title -> Nullable<Text>,
        description -> Nullable<Text>,
        referer_url -> Nullable<Text>,
        pid -> Nullable<Text>,
        ancestry -> Nullable<Text>,
        left -> Nullable<BigInt>,
        right -> Nullable<BigInt>,
        created_at -> Nullable<Timestamp>,
        updated_at -> Nullable<Timestamp>,
        status -> Nullable<Text>,
    }
}

table! {
    nodes (id) {
        id -> Nullable<Integer>,
        subject -> Text,
        predicate -> Text,
        vstr -> Nullable<Text>,
        vint -> Nullable<Integer>,
        vbool -> Nullable<Bool>,
        vfloat -> Nullable<Float>,
        vdatetime -> Nullable<Timestamp>,
        vblob -> Nullable<Binary>,
        vpassword -> Nullable<Text>,
        vgeo -> Nullable<Text>,
        vunit -> Nullable<Text>,
        created_at -> Nullable<Timestamp>,
        updated_at -> Nullable<Timestamp>,
    }
}

table! {
    quizitems (id) {
        id -> Text,
        level -> Nullable<Text>,
        subject -> Text,
        title -> Nullable<Text>,
        description -> Nullable<Text>,
        m3u8 -> Nullable<Text>,
        options -> Nullable<Text>,
        opstype -> Nullable<Text>,
        std_answer -> Nullable<Text>,
        content_id -> Nullable<Text>,
        status -> Nullable<Text>,
        created_at -> Nullable<Timestamp>,
        updated_at -> Nullable<Timestamp>,
        is_master -> Nullable<Bool>,
        master_id -> Nullable<Text>,
    }
}

table! {
    quizzes (id) {
        id -> Text,
        seq -> Nullable<BigInt>,
        level -> Nullable<Text>,
        subject -> Text,
        m3u8 -> Nullable<Text>,
        title -> Nullable<Text>,
        description -> Nullable<Text>,
        folder_id -> Text,
        created_at -> Nullable<Timestamp>,
        updated_at -> Nullable<Timestamp>,
        status -> Nullable<Text>,
    }
}

table! {
    task_diff_proba (id) {
        id -> Text,
        difficulty -> Nullable<Integer>,
        probability -> Nullable<Integer>,
        interval -> Nullable<Integer>,
        created_at -> Nullable<Timestamp>,
        updated_at -> Nullable<Timestamp>,
    }
}

table! {
    tasks (id) {
        id -> Text,
        snapshot_at -> Text,
        pid -> Nullable<Text>,
        subject -> Text,
        title -> Nullable<Text>,
        description -> Nullable<Text>,
        assignee_id -> Text,
        assigner_id -> Nullable<Text>,
        watcher_ids -> Nullable<Text>,
        quiz_item_id -> Text,
        ebp_last_at -> Nullable<Timestamp>,
        ebp_times_consec_fail -> Nullable<Integer>,
        ebp_times_consec_succ -> Nullable<Integer>,
        ebp_times_total -> Nullable<Integer>,
        ebp_difficulty -> Integer,
        ebp_forgetproba -> Nullable<Integer>,
        ebp_recalltime -> Nullable<Timestamp>,
        ebisu_modela -> Nullable<BigInt>,
        ebisu_modelb -> Nullable<BigInt>,
        ebisu_modelt -> Nullable<BigInt>,
        status -> Nullable<Text>,
        created_at -> Nullable<Timestamp>,
        updated_at -> Nullable<Timestamp>,
    }
}

table! {
    users (id) {
        id -> Text,
        email -> Nullable<Text>,
        username -> Nullable<Text>,
        cred -> Nullable<Text>,
        nickname -> Nullable<Text>,
        status -> Nullable<Text>,
        created_at -> Nullable<Timestamp>,
        updated_at -> Nullable<Timestamp>,
    }
}

allow_tables_to_appear_in_same_query!(
    dictsentence,
    dictsentence_trans,
    dictword,
    dictword_trans,
    edges,
    editors,
    events,
    files,
    filetypes,
    folders,
    nodes,
    quizitems,
    quizzes,
    task_diff_proba,
    tasks,
    users,
);
